package com.zenithmind.note.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 笔记分类DTO
 */
@Data
@Schema(description = "笔记分类DTO")
public class NoteCategoryDTO {
    
    @Schema(description = "分类ID")
    private String id;
    
    @Schema(description = "分类名称")
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 50, message = "分类名称长度不能超过50个字符")
    private String name;
    
    @Schema(description = "分类描述")
    @Size(max = 200, message = "分类描述长度不能超过200个字符")
    private String description;
    
    @Schema(description = "分类图标")
    @Size(max = 100, message = "分类图标长度不能超过100个字符")
    private String icon;
    
    @Schema(description = "排序")
    private Integer sort;
    
    @Schema(description = "父级ID")
    private String parentId;
} 